package org.hhgzs.modules.erp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.hhgzs.modules.erp.entity.DepotHead;
import org.hhgzs.modules.erp.mapper.DepotHeadMapper;
import org.hhgzs.modules.erp.service.DepotHeadService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.hhgzs.modules.erp.vo.DepotHeadVo4InDetail;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 单据主表 服务实现类
 * </p>
 *
 * @author peiqy
 * @since 2021-07-14
 */
@Service
@Slf4j
@RequiredArgsConstructor
public class DepotHeadServiceImpl extends ServiceImpl<DepotHeadMapper, DepotHead> implements DepotHeadService {
    private final DepotHeadMapper depotHeadMapper;
    @Override
    public IPage<DepotHeadVo4InDetail> pageX(Page<DepotHeadVo4InDetail> page, String beginTime, String endTime, String type, String materialParam, Integer depotId, Integer oId) {
        return depotHeadMapper.selectPageX(page,beginTime, endTime, type, materialParam, depotId,oId);
    }
}
